#ifndef __USERSAVE_H__
#define __USERSAVE_H__
#include "main.h"

//#define START_FLAG_t   uint16_t
#define START_FLAG     0x1234
#define SAVE_ADDR      0x0800FE00U	   //(uint16_t)0x3F00
#define ID_ADDR        0x0800FC00U	   //(uint16_t)0x3F00

#define USERSAVE_DATASAVE            0
#define USERSAVE_DATARELOAD          1

uint16_t Read_ID(void);



void ReadIdFromNVR(void);

void UserSave_Set( uint8_t otp );
void User_info_Init(void);
#endif    //#ifndef __USERSAVE_H__
